package com.efast.dmom.equipment.statemach.handler.repair;

import com.alibaba.fastjson.JSONObject;
//import com.efast.cafe.commponent.statemach.annotation.StatemachHandle;
//import com.efast.cafe.commponent.statemach.base.HandleBaseProcessorService;
import com.efast.dmom.equipment.entity.EquipRepairOrder;
import com.efast.dmom.equipment.statemach.handler.base.HandleBaseProcessorService;

import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.Map;
/**
 * @author Administrator
 * 维修单完成操作的扩展
 */
@Component
//@StatemachHandle(handleName="complete",configId=1010,entityName ="equip_repair_order")
public class EquipRepairOrderCompleteHandler implements HandleBaseProcessorService<EquipRepairOrder> {

    @Override
    public void process(JSONObject taskBean, EquipRepairOrder bean, Map<String,JSONObject> map) {
        //设置实际结束时间
        bean.setActualEndTime(new Date());
    }
}
